package org.jeecg.modules.storage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 盘点单
 * @Author: jeecg-boot
 * @Date:   2024-08-09
 * @Version: V1.0
 */
@ApiModel(value="buss_warehouse_inventory对象", description="盘点单")
@Data
@TableName("buss_warehouse_inventory")
public class BussWarehouseInventory implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**单据编号*/
	@Excel(name = "单据编号", width = 15)
    @ApiModelProperty(value = "单据编号")
    private String code;
	/**仓库编号*/
	@Excel(name = "仓库编号", width = 15,dicCode = "erp_warehouse,name,code")
    @ApiModelProperty(value = "仓库编号")
    @Dict(dicCode = "erp_warehouse,name,code")
    private String warehouseCode;
	/**盘点类型*/
	@Excel(name = "盘点类型", width = 15)
    @ApiModelProperty(value = "盘点类型")
    @Dict(dicCode = "inventory_type")
    private String inventoryType;
	/**盘点年月*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM")
    @DateTimeFormat(pattern="yyyy-MM")
	@Excel(name = "盘点年月", width = 15,importFormat = "yyyy-MM")
    @ApiModelProperty(value = "盘点年月")
    private String inventoryMonth;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
}
